import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SPetRent
    
    export  class SPetRent
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeLong(this.id);
            arg1.writeString(this.uid);
            arg1.writeInt(this.code);
            arg1.writeInt(this.changeCode);
            arg1.writeInt(this.ownerPlayerId);
            arg1.writeString(this.ownerName);
            arg1.writeString(this.petName);
            arg1.writeInt(this.career);
            arg1.writeInt(this.level);
            arg1.writeInt(this.reinLevel);
            arg1.writeInt(this.talent);
            arg1.writeInt(this.spirit);
            arg1.writeInt(this.growth);
            arg1.writeInt(this.sellPrice);
            arg1.writeInt(this.sellUnit);
            arg1.writeInt(this.rentCount);
            arg1.writeInt(this.vison);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.id = arg1.readLong();
            this.uid = arg1.readString();
            this.code = arg1.readInt();
            this.changeCode = arg1.readInt();
            this.ownerPlayerId = arg1.readInt();
            this.ownerName = arg1.readString();
            this.petName = arg1.readString();
            this.career = arg1.readInt();
            this.level = arg1.readInt();
            this.reinLevel = arg1.readInt();
            this.talent = arg1.readInt();
            this.spirit = arg1.readInt();
            this.growth = arg1.readInt();
            this.sellPrice = arg1.readInt();
            this.sellUnit = arg1.readInt();
            this.rentCount = arg1.readInt();
            this.vison = arg1.readInt();
            return;
        }

        public /* var */id: number;

        public /* var */uid: string;

        public /* var */code: int;

        public /* var */changeCode: int;

        public /* var */ownerPlayerId: int;

        public /* var */ownerName: string;

        public /* var */petName: string;

        public /* var */career: int;

        public /* var */level: int;

        public /* var */reinLevel: int;

        public /* var */talent: int;

        public /* var */spirit: int;

        public /* var */growth: int;

        public /* var */sellPrice: int;

        public /* var */sellUnit: int;

        public /* var */rentCount: int;

        public /* var */vison: int;
    }
